// @Software: serve
// @File : usr_icon
// @Author : vince
// @Time : 2021/9/23 17:10
// @Description  请填写文件描述
package router

import (
	v1 "gintify/api/v1"
	"github.com/gin-gonic/gin"
)

func RegisterIconBlueprint(Router *gin.RouterGroup){
	// 用户控制器
	c := v1.NewIconController()

	// 用户路由组
	r := Router.Group("/icons")
	{
		r.POST("", c.Post)    // Create One
		r.GET("", c.GetList)  // Get List
		r.GET("/:id", c.Get) // Get One
		r.PUT("/:id", c.Put) // Put(Update) One Because DATA with 'id' field
		r.PATCH("/:id", c.Patch) // Patch One
		r.DELETE("/:id", c.Delete) // Delete One
	}
}